# Birthday
birthdays = {'谭芳':'Dec 3', '李健':'June 7', '李振鹏':'Jan 30'}

while True:
    print('Enter a name:(blank to quit)')
    name = input()
    if name == '':
        print('Exit.')
        break

    if name in birthdays: # name -> key, not value
        print(birthdays[name] + ' is the birth of ' + name)
    else:
        print('What is ' + name + '\s birthday?')
        bday = input()
        # 直接把新人生日Value赋值给新人Key，以存储新人
        birthdays[name] = bday
        print(birthdays)
        print('Birthday database updated.')
